﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp6
{
    class Student:Person
    {
        private int Id;
        private string Name;
        private char Sex;
        private int Cardid;
        private string Tel;
        private string Major;
        private string Grade;
        public int id { get; set; }
        public string name { get; set; }
        public char sex { get; set; }
        public int cardid { get; set; }
        public string tel { get; set; }
        public string major { get; set; }
        public string grade { get; set; }

        //public Student(string Student) 
        //{
        //    this.Id = 204401000;
        //    this.StuSex = '女';
        //    this.StuName = "袁琳";
        //    this.StuCardid = 1230433342;
        //    this.StuTel= "15992123232";
        //    this.StuMajor = "软件技术";
        //    this.Grade = "20级";
        //}
        public Student(int id, string name, char sex, int cardid, string tel):base(id, name, sex, cardid, tel)
        {
        
        }
        //public void PrintStu() 
        //{
        //    Console.WriteLine("我的学号{0}，我的名字{1}，我的性别{2}，我的身份证号{3}，我的联系方式{4}，我的专业{5}，我的年级{6}",this.Id,this.Name,this.Sex,this.Cardid,this.Tel,this.Major,this.Grade);
        //}
        public void PrintStu() 
        {
            Console.WriteLine("我的学号{0}，我的名字{1}，我的性别{2}，我的身份证号{3}，我的联系方式{4}",this.Id,this.Name,this.Sex,this.Cardid,this.Tel);
        }
    }
}
